<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="__PUBLIC_HOME__css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC_HOME__css/nprogress.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC_HOME__css/style.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC_HOME__css/font-awesome.min.css">
<link rel="apple-touch-icon-precomposed" href="__PUBLIC_HOME__images/icon.png">
<link rel="shortcut icon" href="__PUBLIC_HOME__images/favicon.ico">
<script type="text/javascript" src="__PUBLIC_ADMIN__lib/jquery/1.9.1/jquery.min.js"></script> 
<script src="__PUBLIC_HOME__js/nprogress.js"></script>
<script src="__PUBLIC_HOME__js/jquery.lazyload.min.js"></script>
<!--[if gte IE 9]>
  <script src="__PUBLIC_HOME__js/jquery-1.11.1.min.js" type="text/javascript"></script>
  <script src="__PUBLIC_HOME__js/html5shiv.min.js" type="text/javascript"></script>
  <script src="__PUBLIC_HOME__js/respond.min.js" type="text/javascript"></script>
  <script src="__PUBLIC_HOME__js/selectivizr-min.js" type="text/javascript"></script>
<![endif]-->
</head>
<body class="user-select">
<header class="header">
<nav class="navbar navbar-default" id="navbar">
<div class="container">
  <div class="header-topbar hidden-xs link-border">
	<ul class="site-nav topmenu">
	  <li><a ></a></li>
	  <empty name='user'>
		<li><a onclick="login('{:U('Login/index')}')" id="login" rel="nofollow" >登录</a></li>
		<li><a onclick="login('{:U('Login/register')}')" title="注册" >注册</a></li>
		<else/>
		<li><a href="{:U('User/index')}" target="_block" rel="nofollow" >{$user['username']}</a></li>
		<li><a href="{:U('Login/logout')}" title="退出登录" >退出登录</a></li>
		</empty>
	</ul>
			 勤记录 懂分享</div>
  <div class="navbar-header">
	<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-navbar" aria-expanded="false"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
	<h1 class="logo hvr-bounce-in"><a href="#" title="木庄网络博客"><img src="__PUBLIC_HOME__images/201610171329086541.png" alt="木庄网络博客"></a></h1>
  </div>
  <div class="collapse navbar-collapse" id="header-navbar">
	<form class="navbar-form visible-xs" action="/Search" method="post">
	  <div class="input-group">
		<input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20" autocomplete="off">
		<span class="input-group-btn">
		<button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
		</span> </div>
	</form>
	<ul class="nav navbar-nav navbar-right">
	  <li><a data-cont="木庄网络博客" title="木庄网络博客" href="{:U('Index/index')}">首页</a></li>
	  <foreach name='cats' item='v'>
	  <li><a data-cont="{$v['cat_name']}" title="{$v['cat_name']}" href="{:U('Blog/index',array('cat_id'=>$v['cat_id']))}" >{$v['cat_name']}</a></li>
	  </foreach>
	</ul>
  </div>
</div>
</nav>
</header>

<block name="content"></block>

<script src="__PUBLIC_HOME__js/bootstrap.min.js"></script>
<script src="__PUBLIC_HOME__js/jquery.ias.js"></script>
<script src="__PUBLIC_HOME__js/scripts.js"></script>
<script type="text/javascript" src="__PUBLIC_ADMIN__lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
	function login(url){
		layer.open({
			  type: 2,
			  area: ['700px', '450px'],
			  title: false,
			  closeBtn: 0,
			  shadeClose: true,
			  skin: 'yourclass',
			  content: url,
			});
		
	}
</script>

</body>
</html>